package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.CustomLine;
import com.tourism.entity.CustomLineQuery;
import com.tourism.exception.GlobalException;

public interface CustomLineService {
    /**
     * 根据id查定制线路路信息
     *
     * @param id
     * @return
     */
    CustomLine getCustomLineById(Long id);


    /**
     * 新增定制线路
     *
     * @param customLine
     * @return
     */
    boolean addCustomLine(CustomLine customLine);

    /**
     * 修改线路定制
     *
     * @param customLine
     * @return
     */
    boolean updateCustomLine(CustomLine customLine);
    /**
     * 根据id删除线路
     *
     * @param id
     * @return
     */
    Boolean deleteCustomLineById(Long id);

    /**
     * 定制线路受理状态变更
     *
     * @param id
     * @param accept
     * @return
     */
    boolean updateCustomLineAccept(Long id, Boolean accept) throws GlobalException;


    /**
     * 分页查定制线路路列表
     *
     * @param CustomLineQuery
     * @return
     */
    PageInfo<CustomLine> getCustomLineList(CustomLineQuery CustomLineQuery);
}
